package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class InsureInfoQuery extends QueryObject {
    private Integer state;
    private String clientName;//投保人
    private String sn;//保单编号
    private String inputUserName;//业务员
    private String keyword;//姓名/身份证号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;//开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;//结束时间


    public String getClientName() {
        return StringUtil.empty2Null(clientName);
    }
    public String getKeyword() {
        return StringUtil.empty2Null(keyword);
    }

    public String getInputUserName() {
        return StringUtil.empty2Null(inputUserName);
    }

    public String getSn() {
        return StringUtil.empty2Null(sn);
    }
}
